package com.gigalaxy.air.extensions
{


	public class GGNotification
	{
	/*
	private static var notificationManager:NotificationManager;
	private static var NOTIFICATION_CODE:String="TMH";

	public static function dispatchNotification(tickerText:String, notificationTitle:String, notificationBody:String):void
	{
		// Create the notificiation
		var n:Notification=createNewNotification(tickerText, notificationTitle, notificationBody);

		if (!notificationManager)
		{
			notificationManager=new NotificationManager();

			notificationManager.addEventListener(NotificationEvent.NOTIFICATION_ACTION, onNotificationAction, false, 0, true);
			notificationManager.addEventListener(StatusEvent.STATUS, onNotificationStatus, false, 0, true);
		}

		notificationManager.notifyUser(NOTIFICATION_CODE, n);
	}

	protected static function onNotificationStatus(event:Event):void
	{
	}

	protected static function onNotificationAction(event:Event):void
	{
	}

	private static function createNewNotification(tickerText:String, notificationTitle:String, notificationBody:String):Notification
	{
		var n:Notification=new Notification();

		n.tickerText=tickerText;
		n.title=notificationTitle;
		n.body=notificationBody;

		// This action label appears in two places on iOS: on the action button of the notification dialog, and on the unlock slider when the device is locked.
		// If unset, the iOS default will be used.
		n.actionLabel="Open";

		// Allows you to contorl whether an alert is dispathed with each notification, or just the first notification.
		n.alertPolicy=NotificationAlertPolicy.EACH_NOTIFICATION;

		// On Android, specifies whether the notification persists when the user taps it in the notification area
		n.cancelOnSelect=true;

		// On Android and iOS "...the app will be brought to the foreground if it was in the background or launched if it had been shutdown.
		// On iOS, the way to perform the action of a notification manifests itself as a button
		// on the notification dialog that appears when a notification is fired and different
		// text on the unlock slider when the device is locked.
		// On Android, the way to perform an action is not visible, it is performed by selecting
		// the notification from the notification list (window shade)."
		n.hasAction=true;
		n.actionData="customAction";

		// Allows you to set the Android notification icon
		n.iconType=NotificationIconType.INFO;

		// On both Android and iOS, lets you set a number on the icon or application badge
		n.numberAnnotation=0;

		// On Android, "ongoing" notifications aren't cleared with the clear button
		n.ongoing=false;

		// Android and iOS
		n.playSound=true;

		// On Android, alerts (sound and vibration) until acknowledged
		n.repeatAlertUntilAcknowledged=false;

		// Only configurable on Android
		n.vibrate=true;

		return n;
	}
	//*/
	}
}
